﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCPets.Models.PetStatusModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Edit Status
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <h2>Edit Status</h2>
  
  <% using (Html.BeginForm()) %>
  <% { %>
  <%= Html.ValidationSummary(true) %>
  
  <fieldset>
    <legend>Role Details</legend>
    
    <div class="editor-label">
      <%= Html.LabelFor(model => model.Name) %>
    </div>
    
    <div class="editor-field">
      <%= Html.TextBoxFor(model => model.Name) %>
      <%= Html.ValidationMessageFor(model => model.Name) %>
    </div>
    
    <div class="editor-label">
      <%= Html.LabelFor(model => model.Description) %>
    </div>
    
    <div class="editor-field">
      <%= Html.TextAreaFor(model => model.Description) %>
      <%= Html.ValidationMessageFor(model => model.Description) %>
    </div>
    
    <p><input type="submit" value="Save" /></p>
  </fieldset>
  <% } %>
  
  <div>
    <%= Html.ActionLink("[Back to List]", "Index") %>
  </div>
</asp:Content>
